'''
Created on Mar 17, 2013

@author: Petko
'''
from django.utils.log import getLogger

class sent_logger:
    ERROR = 40
    WARNING = 30
    WARN = WARNING
    INFO = 20
    DEBUG = 10
    NOTSET = 0

    def __init__(self, name = __name__):
        self.logger = getLogger(name)
        
    def log(self, level, msg, *args, **kwargs):
        self.logger.log(level, msg, *args, **kwargs)